package org.example.demoschedules.service;

import lombok.Getter;
import org.example.demoschedules.model.OrderedMap;

import java.time.LocalDate;


/**
 * 半天班排班，包含上午班和下午班
 *
 * @author 单红宇
 * @since 2024-10-15 09:44:03
 */
@Getter
public class HalfSchedule {

    /**
     * date
     */
    private final LocalDate date;

    /**
     * 上午班排班集合
     * Key是用户名
     */
    private final OrderedMap<String, WorkStatus> amSchedule;
    /**
     * 下午班排班集合
     * Key是用户名
     */
    private final OrderedMap<String, WorkStatus> pmSchedule;

    /**
     * HalfSchedule
     *
     * @param date 日期
     */
    public HalfSchedule(LocalDate date) {
        this.date = date;
        this.amSchedule = new OrderedMap<>();
        this.pmSchedule = new OrderedMap<>();
    }

}